import request from '@/utils/request'

// 查询产品属性分类列表
export function listProductAttrCategory(query) {
  return request({
    url: '/pms/productAttrCategory/list',
    method: 'get',
    params: query
  })
}

// 查询产品属性分类详细
export function getProductAttrCategory(id) {
  return request({
    url: '/pms/productAttrCategory/' + id,
    method: 'get'
  })
}

// 新增产品属性分类
export function addProductAttrCategory(data) {
  return request({
    url: '/pms/productAttrCategory',
    method: 'post',
    data: data
  })
}

// 修改产品属性分类
export function updateProductAttrCategory(data) {
  return request({
    url: '/pms/productAttrCategory',
    method: 'put',
    data: data
  })
}

// 删除产品属性分类
export function delProductAttrCategory(id) {
  return request({
    url: '/pms/productAttrCategory/' + id,
    method: 'delete'
  })
}

// 导出产品属性分类
export function exportProductAttrCategory(query) {
  return request({
    url: '/pms/productAttrCategory/export',
    method: 'get',
    params: query
  })
}